package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.daoman.Repair;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface RepairMapper extends BaseMapper<Repair> {

    //    寝室长添加报修信息
    boolean addRepair(Map<String, Object> map);

    //    根据管理员的楼层查询自己楼层的报修情况
    List<Repair> getMyRepairList(Map<String, Object> map);

    //    报修删除操作根据id
    boolean removeAndUpdate(Map<String, Object> map);

    //    管理员受理该申请订单
    boolean updateMyRepair(Map<String, Object> map);

    //    用户查询自己的申请记录信息
    List<Repair> getMyApply(int id);
}
